import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/main',
      component: () => import('../views/Main.vue'),
      children:[
        {
          path:"/card",
          component:() => import('../views/pages/Card.vue')
        },
        {
          path:"/scens",
          component:() => import('../views/pages/Scene.vue')
        }
      ]
    },
    {
      path: '/',
      component: () => import('../views/Login.vue')
    }
  ]
})

export default router
